package com.lanou3g.demo.controller;

import com.lanou3g.demo.entity.ModuleInfo;
import com.lanou3g.demo.service.IModuleInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ModuleInfoController {
    @Autowired
    private IModuleInfoService moduleInfoService;

    @RequestMapping("/selectAllModuleInfo.do")
    public List<ModuleInfo> selectAllModuleInfo() {
        return moduleInfoService.selectAllModuleInfo();
    }
}
